package com.wcj.entity;

import com.wcj.annotation.Autowired;
import com.wcj.annotation.Component;
import com.wcj.annotation.Qualifier;
import com.wcj.annotation.Value;
import com.wcj.entity.order.Order;

/**
 * @author wcj
 * @Date 2021/6/29 15:54
 * @Version 1.0
 */
@Component
public class Account {

    @Value("1")
    private Integer id;

    @Value("wcj")
    private String name;

    @Value("3.14")
    private Float price;

    @Qualifier("order")
    private Order order;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", order=" + order +
                '}';
    }
}
